//
//  LSZClassificationPraiseManager.m
//  JKFuYinProject
//
//  Created by 九酷 on 2017/9/20.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZClassificationPraiseManager.h"
#import "JKSongsMessStatus.h"
#import "LCPlaylist.h"
#import "NetworkTool+LCAVPlay.h"

@implementation LSZClassificationPraiseManager
-(id)initWithClassificationPraiseManager:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.mutDataArray = [[NSMutableArray alloc]init];
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSString class]]) {
            return self;
        }
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSNumber class]]) {
            return self;
        }
        if (![dic valueForKey:@"data"]) {
            return self;
        }
        NSMutableArray * arrayMut = [[NSMutableArray alloc]init];
        NSArray * arrayData = dic[@"data"];
 
        for (NSDictionary * diction in arrayData) {
            LSZClassificationPraiseMg * classMg = [[LSZClassificationPraiseMg alloc]init];
            classMg.content = [NSString stringWithFormat:@"%@",diction[@"content"]];
            classMg.id_id = [NSString stringWithFormat:@"%@",diction[@"id"]];
            classMg.tid = [NSString stringWithFormat:@"%@",diction[@"tid"]];
            classMg.image = [NSString stringWithFormat:@"%@",diction[@"image"]];
            classMg.image300 = [NSString stringWithFormat:@"%@",diction[@"image300"]];
            classMg.no = [NSString stringWithFormat:@"%@",diction[@"no"]];
            classMg.parentId = [NSString stringWithFormat:@"%@",diction[@"parentId"]];
            classMg.title = [NSString stringWithFormat:@"%@",diction[@"title"]];
            classMg.totalmusic = [NSString stringWithFormat:@"%@",diction[@"totalmusic"]];
            [arrayMut addObject:classMg];
        }
        self.mutDataArray = arrayMut;
    }
    return self;
}

@end
@implementation LSZClassificationPraiseMg

@end
